﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Layouts/Form.Master" CodeBehind="StorageEdit4.aspx.cs" Inherits="HHMMS.UI.Modules.StorageManager.StorageEdit4" %>


<asp:Content ContentPlaceHolderID="head" ID="idFormTitle" runat="server">
    <title><%=Request["title"]%></title>
     <script src="Script/Storage.js"></script>
</asp:Content>
<asp:Content ContentPlaceHolderID="Content" ID="idFormMain" runat="server">
    <web:SmartFormView ID="SmartFormView1" runat="server" DataKeyNames="Id" DataSourceID="SmartDataSource1"
        Width="100%">        
        <InsertItemTemplate></InsertItemTemplate>
        <EditItemTemplate></EditItemTemplate>
        <ItemTemplate>
            <asp:TextBox ID='Id' runat='server' Text='<%# Bind("Id") %>' Width='90%'
                            Visible="false"></asp:TextBox>
          <div>
            <table cellpadding='2' cellspacing='1' width='100%' class="formitem">
             <caption><%=Request["title"]%></caption>
                <tr>
                    <th>                        
                        物资编号:<font color='red'>*<font>
                    </th>
                    <td>
                         <asp:TextBox ID='txtMaterialsNo' Name='MaterialsNo' runat='server' Text='<%# Bind("MaterialsNo") %>' Width='90%' MaxLength="30"
                            validator="required,length[1,50]"></asp:TextBox>                        
                    </td>
                    <th>
                        物资名称:<font color='red'>*<font>
                    </th>
                    <td>
                        <asp:TextBox ID='txtMaterialsName' Name='MaterialsName' runat='server' Text='<%# Bind("MaterialsName") %>' Width='90%' MaxLength="20"
                            validator="required,length[1,100]"></asp:TextBox>
                    </td>
                       <th>                        
                        入库时间:
                    </th>
                    <td>
                            <web:DatePicker ID="dpStoreDt" Name="StoreDt" Text='<%# Bind("StoreDt") %>' Width='90%' MaxLength="30" runat="server" DateTimeFormat="yyyy-MM-dd"
                                validator="required"></web:DatePicker>       
                    </td>
                </tr>    
                 <tr> 
                     <th>                        
                        进库数量:<font color='red'>*<font>
                    </th>
                    <td>
                         <asp:TextBox ID='txtStorageNum' runat='server' Name='Num' Text='<%# Bind("Num") %>' Width='90%' MaxLength="30"
                            validator="required,double,length[1,50]"></asp:TextBox>                        
                    </td>
                    <th>                        
                        计量单位:
                    </th>
                    <td>
                         <asp:TextBox ID='txtUnit' runat='server' Name='Unit' Text='<%# Bind("Unit") %>' Width='90%' MaxLength="30"
                            validator="length[1,50]"></asp:TextBox>                        
                    </td>
                    <th>
                        单价(元):<font color='red'>*<font>
                    </th>
                    <td>
                        <asp:TextBox ID='txtPrice' runat='server' Name='price' Text='<%# Bind("price") %>' Width='90%' MaxLength="20"
                            validator="required,double,length[1,100]"></asp:TextBox>
                    </td>
                </tr>     
                <tr>
                    <th>                        
                        验收人:
                    </th>
                    <td>
                        <asp:TextBox ID='txtinspectors' runat='server' Name='inspectors' Text='<%# Bind("inspectors") %>' Width='90%' MaxLength="20"
                            validator="length[1,100]"></asp:TextBox>
                    </td>
                    <th>                        
                        送料人（班组）:<font color='red'>*<font>
                    </th>
                    <td>
                         <asp:TextBox ID='txtFeeding' runat='server' Name='Feeding' Text='<%# Bind("Feeding") %>' Width='90%' MaxLength="30"
                            validator="required,length[1,50]"></asp:TextBox>                        
                    </td>
                    <th>
                        下车车号:<font color='red'>*<font>
                    </th>
                    <td>
                        <asp:TextBox ID='txtOffCarNum' runat='server' Name='OffCarNum' Text='<%# Bind("OffCarNum") %>' Width='90%' MaxLength="20"
                            validator="required,length[1,100]"></asp:TextBox>
                    </td>
                </tr>  
                <tr>
                      <th>                        
                        下车日期:
                    </th>
                    <td>
                            <web:DatePicker ID="dpOffCarDt" Name="OffCarDt" Text='<%# Bind("OffCarDt") %>' Width='90%' MaxLength="30" runat="server" DateTimeFormat="yyyy-MM-dd"
                                validator="required"></web:DatePicker>       
                    </td>
                    <th>                        
                        备注:
                    </th>
                    <td>
                         <asp:TextBox ID='txtRemark' runat='server' Name='Remark' Text='<%# Bind("Remark") %>' Width='90%' MaxLength="30"
                            validator="length[1,200]"></asp:TextBox>                        
                    </td>
                            <th>                        
                        总金额:
                    </th>
                    <td>
                        <asp:TextBox ID='txtAmount' runat='server' Name='Amount' Text='<%# Bind("Amount") %>' Width='90%' MaxLength="20"
                            validator="required,double,length[1,100]"></asp:TextBox>
                    </td>
                </tr>   
                   <tr>
             
                    <th>架子:</th>
                       <td>
                        <asp:TextBox ID='txtFrame' runat='server' Name='Frame' Text='<%# Bind("Frame") %>' Width='90%' MaxLength="20"
                            validator="length[1,200]"></asp:TextBox>
                    </td>
                        
                    <th>层:</th>
                   <td>
                        <asp:TextBox ID='txtLevel' runat='server' Name='Level' Text='<%# Bind("Level") %>' Width='90%' MaxLength="20"
                            validator="length[1,200]"></asp:TextBox>
                    </td>
           </tr>
            </table>
        </div>
        </ItemTemplate>
    </web:SmartFormView>
    
    <web:SmartSqlDataSource ID="SmartDataSource1" runat="server" SelectCommand="Storage4.select"
     SelectCommandAutoPageWrap="false" InsertCommand="Storage4.insert" UpdateCommand="Storage4.update">
    </web:SmartSqlDataSource>

    <!-- 页脚区域 -->
	<div class="footer">
		<asp:Button ID="Button1" runat="server" Text="确定" 
            OnClientClick="return validateForm();" onclick="Save"/>        
        <asp:Button ID="CloseButton2" runat="server" Text="关闭" OnClientClick="return closeForm();" />        
	</div>
    
    
</asp:Content>